package cn.com.generaldata.os.constant;

public class ExceptionConstant {

	// System cause from 100 to 199
	public static final int CAUSE_SYSTEM = 100;

	// System code from 10000 to 19999
	public static final int CODE_SYSTEM_PARAMETER_IS_NULL = 10000;
	public static final int CODE_SYSTEM_ERROR = 10001;

	// User cause from 200 to 299
	public static final int CAUSE_CREATE_USER = 200;
	public static final int CAUSE_MODIFY_USER = 201;
	public static final int CAUSE_QUERY_USER = 202;
	public static final int CAUSE_REMOVE_USER = 203;
	public static final int CAUSE_LOGIN = 204;
	public static final int CAUSE_CHANGE_PWD = 205;

	// User code from 20000 to 29999
	public static final int CODE_DUPLICATE_LOGIN_NAME = 20000;
	public static final int CODE_INVALID_OLD_PASSWORD = 20001;
	public static final int CODE_INVALID_LOGIN_NAME = 20002;
	public static final int CODE_INVALID_PASSWORD = 20003;

	// Role cause from 300 to 399
	public static final int CAUSE_CREATE_ROLE = 300;
	public static final int CAUSE_MODIFY_ROLE = 301;
	public static final int CAUSE_QUERY_ROLE = 302;
	public static final int CAUSE_REMOVE_ROLE = 303;

	// Role code from 30000 to 39999
	public static final int CODE_DUPLICATE_ROLE_NAME = 30000;

	// Industry cause from 400 to 499
	public static final int CAUSE_CREATE_INDUSTRY = 400;
	public static final int CAUSE_MODIFY_INDUSTRY = 401;
	public static final int CAUSE_QUERY_INDUSTRY = 402;
	public static final int CAUSE_REMOVE_INDUSTRY = 403;

	// Industry code from 40000 to 49999
	public static final int CODE_DUPLICATE_INDUSTRY_NAME = 40000;

	// Report cause from 500 to 599
	public static final int CAUSE_CREATE_REPORT_TYPE = 500;
	public static final int CAUSE_MODIFY_REPORT_TYPE = 501;
	public static final int CAUSE_QUERY_REPORT_TYPE = 502;
	public static final int CAUSE_REMOVE_REPORT_TYPE = 503;

	// Report code from 50000 to 59999
	public static final int CODE_DUPLICATE_REPORT_TYPE_NAME = 50000;

	public static final String MSG_DUPLICATE_AREA_UNIT = "该行政区划已有管理部门";
	public static final String MSG_DUPLICATE_LOGIN_NAME = "该用户已存在";
	public static final String MSG_DUPLICATE_UNIT_NAME = "该企业已存在";
	public static final String MSG_INVALID_LOGIN_NAME = "用户名错误";
	public static final String MSG_INVALID_PASSWORD = "密码错误";

	public static final String MSG_DUPLICATE_INDUSTRY_NAME = "该专业已存在";

	public static final String MSG_DAO_SAVE = "保存对象失败";
	public static final String MSG_DAO_UPDATE = "更新对象失败";
	public static final String MSG_DAO_DELETE = "删除对象失败";
	public static final String MSG_DAO_DELETE_CONSTRAINT_VIOLATION = "不可删除存在外键关联的对象";

	public static final String MSG_ILLEGAL_PARAMETER = "参数错误";
	public static final String MSG_OPERATOR_IS_GO = "当前操作者已审核通过";
	public static final String MSG_OPERATOR_IS_NULL = "当前操作者不存在";

	public static final String MSG_REPORT_IS_NULL = "当前报表不存在";

}
